import { AxiosRequestConfig } from ".";

export default  function xhr(config:AxiosRequestConfig):void {
    const {data = null,url,method = 'get'} = config;
    const request = new XMLHttpRequest()
    request.open(method.toUpperCase(),url,true)
    request.send(data)
}